﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DAL.Sys;
using Model.Sys;
using Common;
namespace BLL.Sys
{
   public class Sys_RoleBLL
    {
       Sys_RoleDAl dal = new Sys_RoleDAl();
       public List<Sys_RoleModel> Getlist(string str)
       {
           return dal.Getlist(str);
       }
       public Sys_RoleModel GetModelById(int id)
       {
           return dal.GetModelById(id);
       }
       public ResultEntity AddRole(Sys_RoleModel model)
       {

           return dal.AddRole(model);
       }
       public ResultEntity UpdRole(Sys_RoleModel model)
       {

           return dal.UpdRole(model);
       }
       /// <summary>
       /// 修改角色对应的菜单权限
       /// </summary>
       /// <param name="model"></param>
       /// <returns></returns>
       public ResultEntity UpMenu(Sys_RoleModel model)
       {
           return dal.UpMenu(model);
       }
    }
}
